<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <script src="./tagcloud.min.js"></script>
  <div class="cloudBox">
    <div class="cloudItem">云标签</div>
    <div class="cloudItem">云标签</div>
    <div class="cloudItem">云标签</div>
    <div class="cloudItem">云标签</div>
    <div class="cloudItem">云标签</div>
    <div class="cloudItem">云标签</div>
  </div>
  <script>
    tagcloud({
      selector: '.cloudBox', //元素选择器
      fontsize: 16, //基本字体大小, 单位px
      radius: 100, //滚动半径, 单位px
      mspeed: 'normal', //滚动最大速度, 取值: slow, normal(默认), fast
      ispeed: 'normal', //滚动初速度, 取值: slow, normal(默认), fast
      direction: 135, //初始滚动方向, 取值角度(顺时针360): 0对应top, 90对应left, 135对应right-bottom(默认)...
      keep: false //鼠标移出组件后是否继续随鼠标滚动, 取值: false, true(默认) 对应 减速至初速度滚动, 随鼠标滚动
    });
  </script>
</body>
</html>